<template>
  <div class="joe_container">
    <main-router/>
    <ants-container-aside v-if="showAside()"/>
  </div>
</template>

<script>
import AntsContainerMain from "@/views/articleView/container/AntsContainerMain"
import AntsContainerAside from "@/views/articleView/container/AntsContainerAside"
import MainRouter from "@/views/articleView/articleRouter/MainRouter";

export default {
  name: 'AntsContainer',
  components: {
    AntsContainerMain,
    AntsContainerAside,
    MainRouter
  },
  data() {
    return {}
  },
  created() {
  },
  methods: {
    key() {
      return this.$route.path
    },
    showAside() {
      let path = this.$route.path
      if (path === '/articleArchive' ||
        path === '/articleSort' ||
        path === '/tools/imgCompress' ||
        path === '/tools/json' ||
        path === '/tools/imgResize' ||
        path === '/tools/cron' ||
        path === '/tools/excelToPdf' ||
        path === '/tools/docToPdf' ||
        path === '/tools/randomPassword' ||
        path === '/leavingMessage' ||
        path === '/writeArticle/articleHome' ||
        path === '/personalData' ||
        path === '/myFavorites' ||
        path.indexOf('/personalHome/') !== -1||
        path.indexOf('/article/publish') !== -1||
        path.indexOf('/writeArticle/articleHome') !== -1) {
        return false
      }

      return true
    }
  }

}
</script>

